<html>
<head>
<TITLE>Marsems System</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/style.css" type=text/css rel=stylesheet>
<script language="javascript" src="../js/Validation.js" type="text/JavaScript"></script>

</head>

<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" cellspacing="1" cellpadding="4">
<form name="form1" method="get" action="">
  <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
    <td colspan="5" align="left">&nbsp;&nbsp;
    
    	<font color="#FF0000">Keyword : 
	    <input name="keyword" type="text" id="keyword" value="{$keyword}" size="60" maxlength="60" style="height:22px; margin-bottom:2px;"> 
	    <select name="searchType" style="height:22px; margin-top:0px;">
	  		{html_options options=$arrSearchType selected=$searchTypeS}
		</select>
	    	<input type="submit" name="Submit" value="Search"></font>
	       <input name="menuGid" type="hidden" id="menuGid" value="{$menuGid}">
	      <input name="menuid" type="hidden" id="menuid" value="{$menuid}">
	
    </td>
    <td width="5%" align="right">&nbsp;&nbsp;</td>
  </tr>
 </form>
  <tr bgcolor="#E4E4E4"> 
    <td width="5%">ID</td>
    <td width="5%">Type</td>
    <td width="10%">Name</td>
    <td width="65%">Summary</td>
   <td width="15%">Operate | <b><a href="listMerchant_Add.php?menuGid={$menuGid}&menuid={$menuid}">Add</a></b></td>
  </tr>
  <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
    <td colspan="4" align="center"><font color="#FF0000">{$error_message}</font></td>
  </tr>
  {foreach item=data from=$arrDataList}
  <tr bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#E9EDED';" onMouseOut="this.style.backgroundColor='#FFFFFF'"> 
    <td>&nbsp;{$data.id}</td>
    <td>&nbsp;{$data.type}</td>
    <td >&nbsp;{$data.name}</td>
    <td>&nbsp;{$data.descript}</td>
    
    <td>
    <A href="listMerchant_Logo.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}" target="_self">Logo</A>
    &nbsp;&nbsp;|&nbsp;&nbsp;
    
    {section name=opItem loop=$arrOperateInfo}
    		{if $smarty.section.opItem.index != 0}
	    		&nbsp;&nbsp;|&nbsp;&nbsp;
    	    {/if}

    		<a href="{$selfFileName}_{$arrOperateInfo[opItem].name}.php?menuGid={$menuGid}&menuid={$menuid}&id={$data.id}" onClick="return validDefault.isConfirmOperate('{$arrOperateInfo[opItem].name}')">{$arrOperateInfo[opItem].viewName}</a>
        
    {/section}</td>
  </tr>
  {/foreach}
</table>
<table width="100%" cellspacing="0" cellpadding="4">
  <tr> 
    <td align="left" width="60%">{$PAGE_BAR}</td>
    <td align="right" width="40%"></td>
  </tr>
</table>
</body>
</html>